package com.atwulidun.adapter05.interfaceadapter;

public class InterfaceAdapterDemo {
    public static void main(String[] args) {
        // 需要用到接口里的哪个方法，就创建一个抽象类的匿名子类重写所需用到的方法即可
        AbsAdapter absAdapter = new AbsAdapter(){
            @Override
            public void m1() {
                System.out.println("重写了m1方法");
            }
        };
        absAdapter.m1();
    }
}
